package com.gtw.modules.dao;

import com.baomidou.mybatisplus.plugins.Page;
import com.gtw.modules.entity.TbCommodity;
import com.gtw.modules.entity.TbCommodityProperty;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 商品属性中间
 *
 * @author wuye
 */
@Mapper
@Repository
public interface TbCommodityPropertyDao extends BaseDao<TbCommodityProperty>{

    List<TbCommodityProperty> queryPageList(Page<TbCommodityProperty> page, Map<String, Object> map);

    int deleteByPrimaryKey(Integer id);

    int insert(TbCommodityProperty record);

    int insertSelective(TbCommodityProperty record);

    TbCommodityProperty selectByPrimaryKey(Integer id);

    List<TbCommodityProperty> findInfo(Map<String, Object> map);

    int updateByPrimaryKeySelective(TbCommodityProperty record);

    int updateByPrimaryKey(TbCommodityProperty record);

    List<TbCommodityProperty> foundByCommodityid(Integer commodityid);

    TbCommodityProperty queryCidAndPid(int commodityid,int propertyid);
}